package com.toby.ioc.context;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @desc: 需要配置环境toby才能启动的容器
 * @author: toby
 * @date: 2019/7/13 1:45
 */
public class TobyApplicationContext extends AnnotationConfigApplicationContext {

    public TobyApplicationContext(Class<?>... annotatedClasses){
        super(annotatedClasses);
    }

    @Override
    protected void initPropertySources() {
        getEnvironment().setRequiredProperties("toby");
    }
}
